import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout

def init_widget(w: QWidget):
    w.setWindowTitle("竖直分布")
    w.resize(640, 480)
    layout = QVBoxLayout()
    w.setLayout(layout)
    
    layout.addWidget(QPushButton("1"))
    layout.addWidget(QPushButton("2"))
    layout.addWidget(QPushButton("3"))
    layout.addWidget(QPushButton("4"))
    layout.addWidget(QPushButton("5"))
    

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = QWidget()
    init_widget(w)
    w.show()
    sys.exit(app.exec_())
